package test;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;

public class CalendarManipulation {
  public static void main(String s[]) {
    Calendar cal = Calendar.getInstance();
//    DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT,
//        DateFormat.MEDIUM);
    DateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 
    System.out.println(df.format(cal.getTime()));

    cal.add(Calendar.HOUR_OF_DAY, 12);
    System.out.println(df.format(cal.getTime()));
  }
}
